/**
*  Module
*
* Description
*/
angular.module('mockupApp', ['ui.router', 'mockupApp.controllers']).config(['$stateProvider', '$urlRouterProvider', function($stateProvider, $urlRouterProvider) {
	
	$stateProvider.state('login', {
		url : '/login',
		controller : 'loginCtrl',
		templateUrl : 'module/admin/login.html'
	});

	//$urlRouterProvider.otherwise("/login");

}]).run(function($rootScope, $state) {
	$rootScope.$on('$routeChangeStart',function(){
		console.log("routeChanged......");
	});
	$rootScope.$on('$routeChangeSuccess', function() {
		alert('change successfull');
	});

	console.log("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");

	$state.go("login");
});